project('GUIDemo', 'c', version: '0.1.0')

gnome = import('gnome')

adwaita_dep = dependency('libadwaita-1', method: 'pkg-config')

Demo_resources = gnome.compile_resources(
  'gui-demo-resources',
  'gui-demo.gresources.xml',
  source_dir: '.',
  c_name: 'gui_demo_resources',
)

src = [
  'gui-demo.c'
]

exe = executable(
  'gui-demo',
  Demo_resources,
  sources: src,
  dependencies: adwaita_dep,
  cpp_args: '-g',
  install: false,
)

test('测试 gui-demo 客户端', exe, timeout: 120)